﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true"
    CodeBehind="RevenueMachineAccountManagement.aspx.cs" Inherits="NetDon.OA.Portal.Finance.RevenueMachineAccountManagement" %>

<%@ Import Namespace="NetDon.OA.Interface" %>
<%@ Import Namespace="NetDon.OA.Portal" %>
<%@ Import Namespace="NetDon.Utilities" %>
<%@ Register Src="../Controls/GridPager.ascx" TagName="GridPager" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script language="javascript" type="text/javascript">
        var userDialogSize = { width: 1000, height: window.top.$common.getClientBounds().height - 200 };


        function viewOrder(sender, args) {
            var orderId = $attr(sender.get_selectedRow(), 'Id');


            var isStatementofAccountCompleted = $attr(sender.get_selectedRow(), 'IsStatementofAccountCompleted');
            var isInvoiced = $attr(sender.get_selectedRow(), 'IsInvoiced');
            var isAccountsReceivable = $attr(sender.get_selectedRow(), 'IsAccountsReceivable');

            var isViewModel = isStatementofAccountCompleted.toString().toLowerCase() == "true" || isInvoiced.toString().toLowerCase() == "true" || isAccountsReceivable.toString().toLowerCase() == "true" ? "true" : "false";
            $dialog('<%= ResolveUrl("~/Finance/RevenueMachineAccountEdit.aspx")%>?ViewModel=' + isViewModel + '&Id=' + orderId, userDialogSize, function (result) {
                if (result) {
                    $get('<%=btnReload.ClientID %>').click();
                }
            });
        }


        function modifyOrder(orderId, isViewModel) {
            $dialog('<%=ResolveUrl("~/Finance/RevenueMachineAccountEdit.aspx") %>?ViewModel=' + isViewModel + '&Id=' + orderId, userDialogSize, function (result) {
                if (result) {
                    $get('<%=btnReload.ClientID %>').click();
                }
            });
        }



        function SelectAll(evtObj) {
            Array.forEach($array($get('<%=gridOrderList.ClientID %>').getElementsByTagName("input")), function (elt) {

                if (elt.type == "checkbox" && elt.disabled == false) {
                    elt.checked = evtObj.checked;
                }
            });
        }
        function SendSelected(evtObj) {
            var count = 0;
            Array.forEach($array($get('<%=gridOrderList.ClientID %>').getElementsByTagName("input")), function (elt) {
                if (elt.type == "checkbox" && elt.id != 'checkAll' && elt.checked) {
                    count++;
                }
            });
            if (count == 0) {
                $alert("请至少选择一笔记录。");
                return false;
            }
            return true;
        }
  
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:UpdatePanel ID="UpdatePanelFlow" runat="server">
        <ContentTemplate>
            <asp:Panel ID="Panel1" runat="server" DefaultButton="btnSearch">
                <table border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td>
                            <NetDon:FormPanel ID="PanelCondition" runat="server" CaptionAlign="NotSet" RepeatColumns="2">
                                <Items>
                                    <NetDon:FormItem HeaderText="订单编号">
                                        <ContentTemplate>
                                            <asp:TextBox ID="txtOrderCode" runat="server"></asp:TextBox>
                                        </ContentTemplate>
                                    </NetDon:FormItem>
                                    <NetDon:FormItem HeaderText="运输计划号">
                                        <ContentTemplate>
                                            <asp:TextBox ID="txtTransportationPlanCode" runat="server"></asp:TextBox>
                                        </ContentTemplate>
                                    </NetDon:FormItem>
                                    <NetDon:FormItem HeaderText="客户">
                                        <ContentTemplate>
                                            <asp:DropDownList ID="ddlCustomer" runat="server" DataSourceID="ObjectDataSourceCustomers"
                                                DataTextField="CustomerName" DataValueField="CustomerId" AppendDataBoundItems="true"
                                                 OnSelectedIndexChanged="ddlCustomer_SelectedIndexChanged" AutoPostBack="True">
                                            </asp:DropDownList>
                                            <asp:ObjectDataSource ID="ObjectDataSourceCustomers" runat="server" OldValuesParameterFormatString="original_{0}"
                                                SelectMethod="RetrieveCustomers" TypeName="NetDon.OA.Business.MiscDataSource">
                                                <SelectParameters>
                                                    <asp:Parameter Name="areaId" />
                                                </SelectParameters>
                                            </asp:ObjectDataSource>
                                        </ContentTemplate>
                                    </NetDon:FormItem>
                                         <NetDon:FormItem HeaderText="承运货物">
                                        <ContentTemplate>
                                            <asp:DropDownList ID="ddlGoodsShippedTypeId" AppendDataBoundItems="True" runat="server"
                                                DataTextField="Name" DataValueField="OID">
                                            </asp:DropDownList>
                                        </ContentTemplate>
                                    </NetDon:FormItem>
                                    <NetDon:FormItem HeaderText="线路分类">
                                        <ContentTemplate>
                                            <asp:DropDownList ID="ddlRouteTypeId" DataSourceID="ddsRouteTypeId" AppendDataBoundItems="True"
                                                runat="server" DataTextField="Name" DataValueField="Value">
                                            </asp:DropDownList>
                                            <NetDon:DictionaryDataSource ID="ddsRouteTypeId" runat="server" CategoryName="线路分类"
                                                EmptyItemType="Select">
                                            </NetDon:DictionaryDataSource>
                                        </ContentTemplate>
                                    </NetDon:FormItem>
                                  <NetDon:FormItem HeaderText="出单日期">
                                        <ContentTemplate>
                                            <asp:TextBox ID="txtReceivingOrderDateStart" runat="server" Width="75px"></asp:TextBox>
                                            <asp:CalendarExtender ID="txtReceivingOrderDateStart_CalendarExtender" runat="server"
                                                Enabled="True" TargetControlID="txtReceivingOrderDateStart" Format="yyyy-MM-dd">
                                            </asp:CalendarExtender>
                                            <asp:Label ID="Label5" runat="server" Text="~" Style="margin-left: 5px; margin-right: 6px"></asp:Label>
                                            <asp:TextBox ID="txtReceivingOrderDateEnd" runat="server" Width="75px"></asp:TextBox>
                                            <asp:CalendarExtender ID="txtReceivingOrderDateEnd_CalendarExtender" runat="server"
                                                Enabled="True" TargetControlID="txtReceivingOrderDateEnd" Format="yyyy-MM-dd">
                                            </asp:CalendarExtender>
                                        </ContentTemplate>
                                    </NetDon:FormItem>
                                    <NetDon:FormItem HeaderText="回单实回日期">
                                        <ContentTemplate>
                                            <asp:TextBox ID="txtReceiptInfoActualResponseDateStart" runat="server" Width="75px"
                                               ></asp:TextBox>
                                            <asp:CalendarExtender ID="CalendarExtender1" runat="server" Enabled="True" TargetControlID="txtReceiptInfoActualResponseDateStart" Format="yyyy-MM-dd">
                                            </asp:CalendarExtender>
                                            <asp:Label ID="Label1" runat="server" Text="~" Style="margin-left: 5px; margin-right: 6px"></asp:Label>
                                            <asp:TextBox ID="txtReceiptInfoActualResponseDateEnd" runat="server" Width="75px"
                                                ></asp:TextBox>
                                            <asp:CalendarExtender ID="CalendarExtender2" runat="server" Enabled="True" TargetControlID="txtReceiptInfoActualResponseDateEnd" Format="yyyy-MM-dd">
                                            </asp:CalendarExtender>
                                        </ContentTemplate>
                                    </NetDon:FormItem>
                                    <NetDon:FormItem HeaderText="对账否">
                                        <ContentTemplate>
                                            <asp:RadioButton ID="radioIsStatementofAccountNeededAll" Checked="True" runat="server"
                                                Text="全部" GroupName="IsStatementofAccountNeeded" OnCheckedChanged="radioIsStatementofAccountNeeded_CheckedChanged"
                                                AutoPostBack="True"></asp:RadioButton>
                                            <asp:RadioButton ID="radioIsStatementofAccountNeededYes" runat="server" Text="是"
                                                GroupName="IsStatementofAccountNeeded" OnCheckedChanged="radioIsStatementofAccountNeeded_CheckedChanged"
                                                AutoPostBack="True"></asp:RadioButton>
                                            <asp:RadioButton ID="radioIsStatementofAccountNeededNo" runat="server" Text="否" GroupName="IsStatementofAccountNeeded"
                                                OnCheckedChanged="radioIsStatementofAccountNeeded_CheckedChanged" AutoPostBack="True">
                                            </asp:RadioButton>
                                        </ContentTemplate>
                                    </NetDon:FormItem>
                                    <NetDon:FormItem HeaderText="对账日期">
                                        <ContentTemplate>
                                            <asp:TextBox ID="txtConfirmStatementofAccountDateStart" runat="server" Width="75px"
                                                Enabled="False"></asp:TextBox>
                                            <asp:CalendarExtender ID="CalendarExtender3" runat="server" Enabled="True" TargetControlID="txtConfirmStatementofAccountDateStart" Format="yyyy-MM-dd">
                                            </asp:CalendarExtender>
                                            <asp:Label ID="Label2" runat="server" Text="~" Style="margin-left: 5px; margin-right: 6px"></asp:Label>
                                            <asp:TextBox ID="txtConfirmStatementofAccountDateEnd" runat="server" Width="75px"
                                                Enabled="False"></asp:TextBox>
                                            <asp:CalendarExtender ID="CalendarExtender4" runat="server" Enabled="True" TargetControlID="txtConfirmStatementofAccountDateEnd" Format="yyyy-MM-dd">
                                            </asp:CalendarExtender>
                                        </ContentTemplate>
                                    </NetDon:FormItem>
                                    <NetDon:FormItem HeaderText="开票否">
                                        <ContentTemplate>
                                            <asp:RadioButton ID="radioIsInvoiceNeededAll" Checked="True" runat="server" Text="全部"
                                                GroupName="IsInvoiceNeeded" OnCheckedChanged="radioIsInvoiceNeeded_CheckedChanged"
                                                AutoPostBack="True"></asp:RadioButton>
                                            <asp:RadioButton ID="radioIsInvoiceNeededYes" runat="server" Text="是" GroupName="IsInvoiceNeeded"
                                                OnCheckedChanged="radioIsInvoiceNeeded_CheckedChanged" AutoPostBack="True"></asp:RadioButton>
                                            <asp:RadioButton ID="radioIsInvoiceNeededNo" runat="server" Text="否" GroupName="IsInvoiceNeeded"
                                                OnCheckedChanged="radioIsInvoiceNeeded_CheckedChanged" AutoPostBack="True"></asp:RadioButton>
                                        </ContentTemplate>
                                    </NetDon:FormItem>
                                    <NetDon:FormItem HeaderText="开票日期">
                                        <ContentTemplate>
                                            <asp:TextBox ID="txtConfirmInvoiceDateStart" runat="server" Width="75px" Enabled="False"></asp:TextBox>
                                            <asp:CalendarExtender ID="CalendarExtender5" runat="server" Enabled="True" TargetControlID="txtConfirmInvoiceDateStart" Format="yyyy-MM-dd">
                                            </asp:CalendarExtender>
                                            <asp:Label ID="Label3" runat="server" Text="~" Style="margin-left: 5px; margin-right: 6px"></asp:Label>
                                            <asp:TextBox ID="txtConfirmInvoiceDateEnd" runat="server" Width="75px" Enabled="False"></asp:TextBox>
                                            <asp:CalendarExtender ID="CalendarExtender6" runat="server" Enabled="True" TargetControlID="txtConfirmInvoiceDateEnd" Format="yyyy-MM-dd">
                                            </asp:CalendarExtender>
                                        </ContentTemplate>
                                    </NetDon:FormItem>
                                    <NetDon:FormItem HeaderText="收款否">
                                        <ContentTemplate>
                                            <asp:RadioButton ID="radioIsAccountsReceivableAll" Checked="True" runat="server"
                                                Text="全部" GroupName="IsAccountsReceivable" OnCheckedChanged="radioIsAccountsReceivable_CheckedChanged"
                                                AutoPostBack="True"></asp:RadioButton>
                                            <asp:RadioButton ID="radioIsAccountsReceivableYes" runat="server" Text="是" GroupName="IsAccountsReceivable"
                                                OnCheckedChanged="radioIsAccountsReceivable_CheckedChanged" AutoPostBack="True">
                                            </asp:RadioButton>
                                            <asp:RadioButton ID="radioIsAccountsReceivableNo" runat="server" Text="否" GroupName="IsAccountsReceivable"
                                                OnCheckedChanged="radioIsAccountsReceivable_CheckedChanged" AutoPostBack="True">
                                            </asp:RadioButton>
                                        </ContentTemplate>
                                    </NetDon:FormItem>
                                    <NetDon:FormItem HeaderText="收款日期">
                                        <ContentTemplate>
                                            <asp:TextBox ID="txtConfirmAccountsReceiptDateStart" runat="server" Width="75px"
                                                Enabled="False"></asp:TextBox>
                                            <asp:CalendarExtender ID="CalendarExtender7" runat="server" Enabled="True" TargetControlID="txtConfirmAccountsReceiptDateStart" Format="yyyy-MM-dd">
                                            </asp:CalendarExtender>
                                            <asp:Label ID="Label4" runat="server" Text="~" Style="margin-left: 5px; margin-right: 6px"></asp:Label>
                                            <asp:TextBox ID="txtConfirmAccountsReceiptDateEnd" runat="server" Width="75px" Enabled="False"></asp:TextBox>
                                            <asp:CalendarExtender ID="CalendarExtender8" runat="server" Enabled="True" TargetControlID="txtConfirmAccountsReceiptDateEnd" Format="yyyy-MM-dd">
                                            </asp:CalendarExtender>
                                        </ContentTemplate>
                                    </NetDon:FormItem>
                                                                        <NetDon:FormItem HeaderText="承运公司">
                                        <ContentTemplate>
                                            <asp:DropDownList ID="ddlCompany" runat="server" DataSourceID="ObjectDataSourceCompany"
                                                DataTextField="CompanyName" DataValueField="CompanyId" AppendDataBoundItems="true">
                                            </asp:DropDownList>
                                            <asp:ObjectDataSource ID="ObjectDataSourceCompany" runat="server" OldValuesParameterFormatString="original_{0}"
                                                SelectMethod="RetrieveCompanies" TypeName="NetDon.OA.Business.MiscDataSource">
                                            </asp:ObjectDataSource>
                                        </ContentTemplate>
                                    </NetDon:FormItem>
                                </Items>
                            </NetDon:FormPanel>
                        </td>
                        <td valign="bottom">
                            <asp:Button ID="btnSearch" SkinID="Button60" runat="server" OnClick="btnSearch_Click"
                                Text="查询"></asp:Button>
                            <asp:Button ID="btnReload" runat="server" SkinID="Hidden" OnClick="btnReload_Click" />
                        </td>
                    </tr>
                </table>
            </asp:Panel>
            <div style="margin-top: 10px">
                <NetDon:GridView ID="gridOrderList" runat="server" AutoGenerateColumns="False" AllowSorting="true"
                    OnClientRowDblClick="viewOrder" OnRowDataBound="gridOrderList_RowDataBound">
                    <Columns>
                        <%--<NetDon:TemplateField>
                            <HeaderStyle HorizontalAlign="Center" />
                            <HeaderTemplate>
                                <asp:CheckBox ID="chkSelectAll" runat="server" onclick="SelectAll(this)" />
                            </HeaderTemplate>
                            <ItemStyle HorizontalAlign="Center" />
                            <ItemTemplate>
                                <asp:CheckBox ID="chkSelect" runat="server" />
                            </ItemTemplate>
                        </NetDon:TemplateField>--%>
                        <NetDon:BoundField HeaderText="订单编号" DataField="OrderCode" SortExpression="OrderCode">
                        </NetDon:BoundField>
                        <NetDon:BoundField HeaderText="出单日期" DataField="ReceivingOrderDate" DataFormatString="{0:yyyy-MM-dd}"
                            SortExpression="ReceivingOrderDate">
                        </NetDon:BoundField>
                        <NetDon:BoundField HeaderText="实发货日期" DataField="ActualShippingDate" SortExpression="ActualShippingDate"
                            DataFormatString="{0:yyyy-MM-dd}">
                        </NetDon:BoundField>
                        <NetDon:BoundField HeaderText="运输计划号" DataField="TransportationPlanCode" SortExpression="TransportationPlanCode">
                        </NetDon:BoundField>
                      <%--   <NetDon:TemplateField HeaderText="营收单价(￥)" SortExpression="UnloadingCostWithFactory">
                            <ItemTemplate>
                                <%#!MiscUtilities.IsNullOrEmpty(Eval("UnloadingCostWithFactory")) ? ((Decimal)Eval("UnloadingCostWithFactory")).ToString("#,###.00") : ""%>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right"></ItemStyle>
                        </NetDon:TemplateField>--%>
                  <%--       <NetDon:TemplateField HeaderText="成本单价(￥)" SortExpression="UnitCost">
                            <ItemTemplate>
                                <%#!MiscUtilities.IsNullOrEmpty(Eval("UnitCost")) ? ((Decimal)Eval("UnitCostPrice")).ToString("#,###.00") : ""%>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right"></ItemStyle>
                        </NetDon:TemplateField>--%>
                           <NetDon:TemplateField HeaderText="送货城市" >
                            <ItemTemplate>
                                  <%#Server.HtmlEncode(GetCityName(Eval("IssuingOrderId")))%>
                            </ItemTemplate>
                        </NetDon:TemplateField>
                         <NetDon:TemplateField HeaderText="送货地址" >
                            <ItemTemplate>
                             <asp:Label ID="lblMessage"  runat="server" Text='<%# GetShortDeliveryAddress(Eval("IssuingOrderId")) %>'
                                                    Style="cursor: pointer" ToolTip='<%# GetDeliveryAddress(Eval("IssuingOrderId")) %>'></asp:Label>
                            </ItemTemplate>
                        </NetDon:TemplateField>
                        <%--  <NetDon:TemplateField HeaderText="实际装车数量" SortExpression="ActualEntruckingAmount">
                            <ItemTemplate>
                                <%#!MiscUtilities.IsNullOrEmpty(Eval("ActualEntruckingAmount")) ? Convert.ToDecimal(Eval("ActualEntruckingAmount")).ToString("#,###.00") : ""%>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right"></ItemStyle>
                        </NetDon:TemplateField>--%>
                        <NetDon:TemplateField HeaderText="实际装车箱数" SortExpression="ActualEntruckingBoxAmount">
                            <ItemTemplate>
                                <%#!MiscUtilities.IsNullOrEmpty(Eval("ActualEntruckingBoxAmount")) ? Convert.ToInt32(Eval("ActualEntruckingBoxAmount")).ToString("#,###") : ""%>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right"></ItemStyle>
                        </NetDon:TemplateField>
                        <NetDon:TemplateField HeaderText="营业收入(￥)" SortExpression="Revenues">
                            <ItemTemplate>
                                <%#!MiscUtilities.IsNullOrEmpty(Eval("Revenues")) ? ((Decimal)Eval("Revenues")).ToString("#,###.00") : ""%>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right"></ItemStyle>
                        </NetDon:TemplateField>
                        <NetDon:TemplateField HeaderText="营业总收入(￥)" SortExpression="TotalRevenues">
                            <ItemTemplate>
                                <%#!MiscUtilities.IsNullOrEmpty(Eval("TotalRevenues")) ? ((Decimal)Eval("TotalRevenues")).ToString("#,###.00") : ""%>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right"></ItemStyle>
                        </NetDon:TemplateField>
                        <NetDon:TemplateField HeaderText="成本(￥)" SortExpression="Cost">
                            <ItemTemplate>
                                <%#!MiscUtilities.IsNullOrEmpty(Eval("Cost")) ? ((Decimal)Eval("Cost")).ToString("#,###.00") : ""%>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right"></ItemStyle>
                        </NetDon:TemplateField>
                        <NetDon:TemplateField HeaderText="利润(￥)" SortExpression="Profit">
                            <ItemTemplate>
                                <%#!MiscUtilities.IsNullOrEmpty(Eval("Profit")) ? ((Decimal)Eval("Profit")).ToString("#,###.00") : ""%>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right"></ItemStyle>
                        </NetDon:TemplateField>
                        <NetDon:TemplateField HeaderText="毛利率(%)" SortExpression="ProfitRate">
                            <ItemTemplate>
                                <%-- <%#GetProfitRate(Eval("Profit"), Eval("TotalRevenues"))%>--%>
                                <%#!MiscUtilities.IsNullOrEmpty(Eval("ProfitRate")) ? ((Decimal)Eval("ProfitRate")).ToString("#,###.00") : ""%>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right"></ItemStyle>
                        </NetDon:TemplateField>
                          <NetDon:TemplateField HeaderText="额外成本" SortExpression="ExtraCost">
                            <ItemTemplate>
                                <%#!MiscUtilities.IsNullOrEmpty(Eval("ExtraCost")) ? ((Decimal)Eval("ExtraCost")).ToString("#,###.00") : ""%>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right"></ItemStyle>
                        </NetDon:TemplateField>
                        <NetDon:TemplateField HeaderText="是否异常">
                            <ItemTemplate>
                                <%#!MiscUtilities.IsNullOrEmpty(Eval("IsInvoiced")) && Convert.ToBoolean(Eval("IsInvoiced")) ? "是" : "否"%>
                            </ItemTemplate>
                        </NetDon:TemplateField>
                      <%--  <NetDon:BoundField HeaderText="应开票日期" DataField="DueInvoiceDate" SortExpression="DueInvoiceDate"
                            DataFormatString="{0:yyyy-MM-dd}">
                        </NetDon:BoundField>
                        <NetDon:BoundField HeaderText="应收日期" DataField="AccountsReceivableDate" SortExpression="AccountsReceivableDate"
                            DataFormatString="{0:yyyy-MM-dd}">
                        </NetDon:BoundField>--%>
                        <NetDon:TemplateField HeaderText="对帐否" SortExpression="IsStatementofAccountCompleted">
                            <ItemTemplate>
                                <%#!MiscUtilities.IsNullOrEmpty(Eval("IsStatementofAccountCompleted")) && Convert.ToBoolean(Eval("IsStatementofAccountCompleted")) ? "是" : "否"%>
                            </ItemTemplate>
                        </NetDon:TemplateField>
                     <%--   <NetDon:BoundField HeaderText="确认对账日期" DataField="ConfirmStatementofAccountDate"
                            SortExpression="ConfirmStatementofAccountDate" DataFormatString="{0:yyyy-MM-dd}">
                        </NetDon:BoundField>--%>
                        <NetDon:TemplateField HeaderText="开票否" SortExpression="IsInvoiced">
                            <ItemTemplate>
                                <%#!MiscUtilities.IsNullOrEmpty(Eval("IsInvoiced")) && Convert.ToBoolean(Eval("IsInvoiced")) ? "是" : "否"%>
                            </ItemTemplate>
                        </NetDon:TemplateField>
                    <%--    <NetDon:BoundField HeaderText="确认开票日期" DataField="ConfirmInvoiceDate" SortExpression="ConfirmInvoiceDate"
                            DataFormatString="{0:yyyy-MM-dd}">
                        </NetDon:BoundField>--%>
                        <NetDon:TemplateField HeaderText="收款否" SortExpression="IsAccountsReceivable">
                            <ItemTemplate>
                                <%#!MiscUtilities.IsNullOrEmpty(Eval("IsAccountsReceivable")) && Convert.ToBoolean(Eval("IsAccountsReceivable")) ? "是" : "否"%>
                            </ItemTemplate>
                        </NetDon:TemplateField>
                      <%--  <NetDon:BoundField HeaderText="确认应收日期" DataField="ConfirmAccountsReceiptDate" SortExpression="ConfirmAccountsReceiptDate"
                            DataFormatString="{0:yyyy-MM-dd}">
                        </NetDon:BoundField>--%>
                         <NetDon:BoundField HeaderText="更新时间" DataField="LastUpdatedDate" SortExpression="LastUpdatedDate"
                            DataFormatString="{0:yyyy-MM-dd}">
                        </NetDon:BoundField>
                        <NetDon:BoundField HeaderText="更新人" SortExpression="LastUpdatedBy" DataField="UserName">
                        </NetDon:BoundField>
                        <NetDon:TemplateField HeaderText="操作" ItemStyle-Width="50px">
                            <ItemTemplate>
                                <asp:ImageButton ID="btnEdit" runat="server" SkinID="Modify" ImageAlign="AbsMiddle"
                                    CausesValidation="false" />
                            </ItemTemplate>
                        </NetDon:TemplateField>
                    </Columns>
                </NetDon:GridView>
                <uc1:GridPager ID="PageQueryAdapter1" runat="server" TargetControlID="gridOrderList"
                    OnPerformGetCondition="PageQueryAdapter1_PerformGetCondition" OnPerformGetRecordCount="PageQueryAdapter1_PerformGetRecordCount"
                    OnPerformGetPageData="PageQueryAdapter1_PerformGetPageData" />
            </div>
            <asp:HiddenField ID="fieldOrderId" runat="server" />
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
